package com.cyl.manager.aws.convert;

import org.mapstruct.Mapper;
import com.cyl.manager.aws.domain.entity.SystemStatistics;
import com.cyl.manager.aws.domain.vo.SystemStatisticsVO;
import com.ruoyi.common.annotation.Excel;

import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.List;
/**
 * 系统数据统计  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
public class SystemStatistics2Convert  {

	public static SystemStatistics dosAdddos(SystemStatistics thisDate,SystemStatistics dbDate) {
		SystemStatistics ret = new SystemStatistics();
		
		ret.setLoginMemberCount((thisDate.getLoginMemberCount().intValue()+dbDate.getLoginMemberCount().intValue()));
		
		ret.setRegisterMemberCount((thisDate.getRegisterMemberCount().intValue()+dbDate.getRegisterMemberCount().intValue()));
		ret.setAddCartMemberCount((thisDate.getAddCartMemberCount().intValue()+dbDate.getAddCartMemberCount().intValue()));
		ret.setCreateOrderMemberCount((thisDate.getCreateOrderMemberCount().intValue()+dbDate.getCreateOrderMemberCount().intValue()));
		ret.setDealMemberCount((thisDate.getDealMemberCount().intValue()+dbDate.getDealMemberCount().intValue()));
		ret.setOrderCount((thisDate.getOrderCount().intValue()+dbDate.getOrderCount().intValue()));
		ret.setDealCount((thisDate.getDealCount().intValue()+dbDate.getDealCount().intValue()));
		ret.setDealAmount((thisDate.getDealAmount().add(dbDate.getDealAmount())));
		ret.setAftersaleCount((thisDate.getAftersaleCount().intValue()+dbDate.getAftersaleCount().intValue()));
		ret.setAftersaleAmount((thisDate.getAftersaleAmount().add(dbDate.getAftersaleAmount())));
		ret.setCreateOrderProductCount((thisDate.getCreateOrderProductCount().intValue()+dbDate.getCreateOrderProductCount().intValue()));
		
		ret.setDeptDpId(thisDate.getDeptDpId());
		ret.setDeptTzId(thisDate.getDeptTzId());
		ret.setDeptZbjId(thisDate.getDeptZbjId());
		ret.setSumMemberCount((thisDate.getSumMemberCount().intValue()));

	    
		return ret;
		
	}
}
